package com.firebird.feda.tag;

import java.rmi.Naming;
import com.firebird.parameter.FirebirdParameterService;
import com.firebird.feda.inter.FedaAppInter;

public class RmiServer {
	private static FedaAppInter personService = null;

	public static FedaAppInter getInstance() {
		try {
			if (personService == null) {
				personService = (FedaAppInter) Naming
						.lookup(FirebirdParameterService.getInstance().getParameter("config.feda.rmi.url"));
			}
		} catch (Exception ex) {
			ex.printStackTrace();
		}
		return personService;
	}
}
